import request from '../api/request.js';

function cartList(data){
	return request({
		method: "POST",
		url: 'cart/list',
		data: data
	})
}

function createCart(data){
	return request({
		method: "POST",
		url: 'cart/create',
		data: data
	})
}

function deleteCart(data){
	return request({
		method: "POST",
		url: 'cart/delete',
		data: data
	})
}

function updateCart(data){
	return request({
		method: "POST",
		url: 'cart/update',
		data: data
	})
}
export default{
	cartList,
	createCart,
	deleteCart,
	updateCart,
}